<!-- .aside -->
<aside class="{{bg}} dk aside hidden-print {%if navxs %} nav-xs {% endif %}" id="nav">
    <section class="vbox">
        <section class="w-f-md scrollable">
            <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0"
                 data-size="10px" data-railOpacity="0.2">

                <!-- nav -->
                <nav class="nav-primary hidden-xs">

                    <!--<ul class="nav bg clearfix">-->
                    <!--<li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted">-->
                    <!--微信-->
                    <!--</li>-->
                    <!--<li>-->
                    <!--<a href="index_index.html">-->
                    <!--<i class="icon-wrench  icon text-success"></i>-->
                    <!--<span class="font-bold">微信管理</span>-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--<li>-->
                    <!--<a href="genres.html">-->
                    <!--<i class="icon-settings icon text-info"></i>-->
                    <!--<span class="font-bold">微信设置</span>-->
                    <!--</a>-->
                    <!--</li>-->

                    <!--<li class="m-b hidden-nav-xs"></li>-->
                    <!--</ul>-->
                    <ul class="nav" data-ride="collapse">
                        <!--111111111111111111-->
                        {% if 4|getmode('')|length==0 %}
                        {%set ism = 20%}
                        {%else%}
                        {%set ism = 0%}
                        {%endif%}
                        {% for i, v in controller.MenuGroup%}
                        {% if i!= 0 and i != 99  and i !=ism%}

                        <li class="hidden-nav-xs padder m-t m-b-sm text-xs text-muted">
                            <span class="pull-right"><a href="#{{ i }}"><i class="icon-plus i-lg"></i></a></span>
                            {{ v }}
                        </li>
                        {% for v in controller.adminmenu[i] %}
                        {% if controller.tactive == v.url %}
                        <li class="active">{% else %}
                        <li>{% endif %}
                            <a href="javascript:void(0);" class="auto">
                        <span class="pull-right text-muted">
                          <i class="fa fa-angle-left text"></i>
                          <i class="fa fa-angle-down text-active"></i>
                        </span>
                                {%if v.ico%}
                                <i class="fa {{v.ico}}">
                                </i>
                                {%else%}
                                <i class="icon-screen-desktop icon">
                                </i>
                                {%endif%}
                                <span>{{v.title}}</span>
                            </a>
                            <ul class="nav dk text-sm">
                                {% for c in v.children %}
                                {% if controller.active == c.url %}
                                <li class="active">{% else %}
                                <li>{% endif %}
                                    <a href="/{{c.url}}" class="auto">
                                        <i class="fa fa-angle-right text-xs"></i>

                                        <span>{{c.title}}</span>
                                    </a>
                                </li>
                                {% endfor%}
                            </ul>
                        </li>
                        {% endfor%}
                        {% endif %}
                        {% endfor %}
                        <!--11111111111111111111-->
                    </ul>
                </nav>
                <!-- / nav -->
            </div>
        </section>

        <footer class="footer hidden-xs no-padder text-center-nav-xs">
            <div class="bg hidden-xs ">
                <div class="dropdown dropup  wrapper-sm clearfix">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                      <span class="thumb-sm avatar pull-left m-l-xs">
                        <img src="/static/admin/img/weixin.png" class="dker" alt="...">
                        <i class="on b-black"></i>
                      </span>
                      <span class="hidden-nav-xs clear">
                        <span class="block m-l">
                          <strong class="font-bold text-lt">{{config.setup.wx_name}}</strong>
                          <b class="caret"></b>
                        </span>
                        <span class="text-muted text-xs block m-l">
                            {%if config.setup.wx_type==1%}
                            未认证订阅号
                            {%elif config.setup.wx_type==2%}
                            认证订阅号
                            {%elif config.setup.wx_type==3%}
                            未认证服务号
                            {%elif config.setup.wx_type==4%}
                            微信认证服务号
                            {%endif%}
                        </span>
                      </span>
                    </a>

                    <ul class="dropdown-menu animated fadeInRight aside text-left">
                        <li>
                            <span class="arrow bottom hidden-nav-xs"></span>
                            <a href="/admin/setup/index?id=6">公众号信息</a>
                        </li>
                        <li>
                            <a href="/admin/mpbase/mass">群发功能</a>
                        </li>
                        <li><a href="/admin/mpbase/fodderlist">素材管理</a> </li>
                        <li>
                            <a href="/admin/mpbase/userlist">
                                <!--<span class="badge bg-danger pull-right">3</span>-->
                                微信用户
                            </a>
                        </li>
                        <li>
                            <a href="/admin/mpbase/autoreply">自动回复</a>
                        </li>
                        <li>
                            <a href="/admin/mpbase/custommenu">自定义菜单</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="/admin/mpbase/index" >公众平台管理</a>
                            <!--data-toggle="ajaxModal"-->
                        </li>
                    </ul>
                </div>
            </div>
        </footer>
    </section>
</aside>
<!-- /.aside -->